<template>
  <div class="ziroom">
    <mt-cell :title="item.house_name" @click.native="childItem">
      <div>
        <span class="sapn">{{item.house_type}} | {{item.area}}m | {{item.aspect}}</span><br />
        <span class="sapn2">距离车道沟站{{item.subway}}km</span>
      </div>
      <span class="span1">¥{{item.house_price}}/月</span>
      <img slot="icon" v-if="item.image" :src=item.image alt="" />
      <div class="btn">近地铁</div>
    </mt-cell>
  </div>
</template>
<script>
export default {
  props: {
    item: {
      type: Object,
      required: true,
    },
  },
  methods:{
    childItem(){
      this.$emit("childItem",this.item);
    }
  }
}
</script>
<style>
.ziroom .mint-cell:last-child {
   background-image: none;
}
.ziroom .mint-cell-wrapper {
  background-image: none;
  margin: 0 0.4rem;
}

.ziroom .mint-cell {
  width: 375px;
  height: 109px;
}
.ziroom .d1 {
  display: flex;
  justify-content: space-around;
  /* width: 200px; */
  flex-flow: wrap;
}
.ziroom .mint-cell-title img {
  width: 7rem;
  height: 5rem;
  border-radius: 10px;
  margin-top: 10px;
}
.ziroom .mint-cell-text {
  position: absolute;
  top: 12px;
    left: 143px;
    font-size: 0.9rem
}
.ziroom .mint-cell-value {
  position: absolute;
  top: 13px;
    left: 142px;
    width: 201px;
    height: 59px;
}
.ziroom .span1 {
  position: absolute;
  right: -20px;
  font-size: 20px;
  color: orangered;
  font-weight: 700;
}
.ziroom .sapn {
  font-size: 7px;
  width: 100px;
  height: 35px;
  margin-bottom: 0px;
}
.ziroom .sapn2 {
  font-size: 7px;
  width: 100px;
  height: 35px;
}
.ziroom .btn {
  position: absolute;
    top: 59px;
    font-size: 7px;
    background-color: #ccc;
    color: #666;
    padding: 2px;
    border-radius: 5px;
}
a{
  color: black;
}
</style>